<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	--><link rel="stylesheet" type="text/css" href="css/styles.css">

  </head>
  
  <body>
  <div align="left" style="color : #000000">操作权限</div>
   <hr color="#336699">
  <div 	align="center">
		
				<table width="90%" >
						<tr id="tr" >
							<th>角色名称</th>
						<!-- 	<th>删除</th> -->	
							<th>权限分配</th>
							
						</tr>
						<c:choose>
						<c:when test="${empty roleList}">
						<tr height="200">
					 	<td colspan="3" align="center" >目前还没有角色数据</td> 	
						</tr>
						</c:when>
						<c:otherwise>
						<c:forEach items="${roleList}" var="role">
							<tr onmouseover="this.className='mouseOver'" onmouseout="this.className='mouseOut'">
								<td>${role.roleName}</td>
							<!-- 	<td>删除</td> -->
								<td><a href="rolePrivListAction.action?roleId=${role.id}">分配</a></td>
							<!-- 	<td><input type="radio" id="loss" name="loss" onclick="setSignId(${sign.FId})"></td> -->
							</tr>
							
						</c:forEach>
						</c:otherwise>
						</c:choose>
						</table>
				 </div>
			<div>
		</div>
  </body>
</html>
